<li id="subnav" class="subnav">
    <ul class="sidebar-menu side-sub-menu">
        <li class="sidebar-header">icon</li>
        {notempty name="_extra_menu"}
            {// 动态扩展菜单 //}
            {:extra_menu($_extra_menu,$__MENU__)}
        {/notempty}
        {volist name="__MENU__.child" id="sub_menu"}
        <!-- 子导航 -->
        {notempty name="sub_menu"}
            {notempty name="key"}
            <li class="active">
                <a href="#">
                    <i class="glyphicon glyphicon-star-empty"></i> <span>{$key}</span>
                    <i class="fa fa-angle-left pull-right"></i>
                </a>
                <ul class="sidebar-submenu">
                    {volist name="sub_menu" id="menu"}
                    <li><a href="{$menu.url|url}"><i class="{$menu['icon'] ? $menu['icon'] : 'fa fa-circle-o'}"></i>{$menu.title}</a></li>
                    {/volist}
                </ul>
            </li>
            {else/}
                {volist name="sub_menu" id="menu"}
                    <li><a class="fa fa-circle-o" href="{$menu.url|url}">{$menu.title}</a></li>
                {/volist}
            {/notempty}
        {/notempty}
        <!-- /子导航 -->
        {/volist}

        {notempty name="nodes"}
        {volist name="nodes" id="sub_menu"}
        <!-- 子导航 -->
            {notempty name="sub_menu"}
            <li class="{neq name="sub_menu['current']" value="0"}active{/neq}">
                {gt name="sub_menu['allow_publish']" value="0"}
                    <a href="{$sub_menu.url|url}"><i class="fa fa-circle-o"></i>{$sub_menu.title}</a>
                {else/}
                    <a href="#">
                        <i class="fa fa-share"></i> <span>{$sub_menu.title}</span>
                        <i class="fa fa-angle-left pull-right"></i>
                    </a>
                    <ul class="sidebar-submenu {neq name='sub_menu["current"]' value="1"}subnav-off{/neq}">
                        {notempty name="sub_menu['_child']"}
                        {volist name="sub_menu['_child']" id="menu"}
                        <li {if condition="$menu['id'] eq $cate_id or $menu['current'] eq 1"}class="current"{/if}>
                            {gt name="menu['allow_publish']" value="0"}
                                <a href="{$menu.url|url}"><i class="fa fa-circle-o"></i>{$menu.title}</a>
                            {else/}
                                <!-- 一级子菜单 -->
                                {present name="menu['_child']"}
                                <a href="#">
                                    <i class="fa fa-share"></i> <span>{$menu.title}</span>
                                    <i class="fa fa-angle-left pull-right"></i>
                                </a>
                                <ul class="sidebar-submenu">
                                    {foreach name="menu['_child']" item="three_menu"}
                                    <li>
                                        {gt name="three_menu['allow_publish']" value="0"}<a class="item" href="{$three_menu.url|url}">{$three_menu.title}</a>{else/}<a class="item" href="javascript:void(0);">{$three_menu.title}</a>{/gt}
                                        <!-- 二级子菜单 -->
                                        {present name="three_menu['_child']"}
                                        <ul class="subitem">
                                            {foreach name="three_menu['_child']" item="four_menu"}
                                            <li>
                                                {gt name="four_menu['allow_publish']" value="0"}<a class="item" href="{:url('index','cate_id='.$four_menu['id'])}">{$four_menu.title}</a>{else/}<a class="item" href="javascript:void(0);">{$four_menu.title}</a>{/gt}
                                                <!-- 三级子菜单 -->
                                                {present name="four_menu['_child']"}
                                                <ul class="subitem">
                                                    {volist name="four_menu['_child']" id="five_menu"}
                                                    <li>
                                                        {gt name="five_menu['allow_publish']" value="0"}<a class="item" href="{:url('index','cate_id='.$five_menu['id'])}">{$five_menu.title}</a>{else/}<a class="item" href="javascript:void(0);">{$five_menu.title}</a>{/gt}
                                                    </li>
                                                    {/volist}
                                                </ul>
                                                {/present}
                                                <!-- end 三级子菜单 -->
                                            </li>
                                            {/foreach}
                                        </ul>
                                        {/present}
                                        <!-- end 二级子菜单 -->
                                    </li>
                                    {/foreach}
                                </ul>
                                {/present}
                                <!-- end 一级子菜单 -->
                            {/gt}
                        </li>
                        {/volist}
                        {/notempty}
                    </ul>
                {/gt}
            </li>
            {/notempty}
        <!-- /子导航 -->
        {/volist}

        <!-- 回收站 -->
        {eq  name="show_recycle" value="1"}
        <li> <a href="{:url('article/recycle')}"><i class="fa fa-circle-o"></i>回收站</a></li>
        {/eq}
        {/notempty}
    </ul>
</div>
